﻿using HarmonyLib;
using Verse;
using System.Reflection;

namespace SuperMe
{
    public class SuperMeMod : Mod
    {
        public static SuperMeSettings settings;
        public SuperMeMod(ModContentPack content) : base(content)
        {
            SuperMeDef.Log("Hello World.");
            var harmony = new Harmony("com.superme.rimworld.mod");
            var assembly = Assembly.GetExecutingAssembly();
            harmony.PatchAll(assembly);

            settings = base.GetSettings<SuperMeSettings>();            
        }

        public override string SettingsCategory()
        {
            return "SuperMe";   //  return "SuperMe".Translate();
        }

        public override void DoSettingsWindowContents(UnityEngine.Rect inRect)
        {
            base.DoSettingsWindowContents(inRect);
            settings.DoSettingsWindowContents(inRect);            
        }

        public override void WriteSettings()
        {
            base.WriteSettings();
        }
    }
}
